<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转</title>
    <style>
        html{
            /* perspective: 800px; */
        }
        body{
            border:1px balck solid;
            background-color: rgb(241,241,241);
        }
        .box1{
            width:257px;
            height:241px;
            background-color: aqua;
            margin:200px auto;
            transition: 2s;
            border-top:solid 10px red;
            border-bottom: dashed 10px greenyellow;
            border-left: dotted 10px purple;
            border-right:dashed 10px yellow;
        }
        body:hover .box1{
            /* transform: translateZ(800px);   */
            /* transform: rotateY(180deg)  translateZ(100px); */
            /* transform: translateZ(100px) rotateY(180deg); */
            transform: rotateY(180deg);
            /* backface-visibility背面显示效果*/
            backface-visibility: visible;

        }
    </style>
</head>
<body>
    <div class="box1">
        <img src="./1.jpg">
    </div>
    
</body>
</html>